<?php 

$id = $_GET['id'];

$arr = glob('./Images/*');

unlink($arr[$id]);

header('Location:./index.php');

 ?>